//
//  GMCommenDefine.h
//  goldmetal
//
//  Created by mac on 2017/1/20.
//  Copyright © 2017年 宏鹿. All rights reserved.
//

#ifndef GMCommenDefine_h
#define GMCommenDefine_h


//6p的比例
#define scalNum (IS_IPHONE_6P ? mainWidth/375 :1)
#define HscalNum (mainWidth/375)


/**定义颜色的宏*/
#define UIColorFromRGB(rgbValue) [UIColor \
colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \
blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

#define AlphaColorWithRGBA(rgbValue) [UIColor \
colorWithRed:((float)((rgbValue & 0xFF000000) >> 24))/255.0 \
green:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
blue:((float)((rgbValue & 0xFF00) >> 8))/255.0 alpha:((float)(rgbValue & 0xFF))/255.0]





#endif /* GMCommenDefine_h */
